import { FormGroup } from "@angular/forms";
import { FeaturePropertyType } from "../../models/layer.model";

export interface QueryRuleOperator {
    lable: string;
    value: string;
}

export interface QueryRule {
    field: string,
    operator: string,
    value?: any
}

export interface QueryRuleResult {
    operator: 'AND'|'OR',
    rules: QueryRule[]
}

export enum OperatorTypes {
    equal = 'equal',
    unequal = 'unequal',
    contain = 'contain',
    greaterThan = 'greaterThan',
    greaterThanOrEqual = 'greaterThanOrEqual',
    lessThan = 'lessThan',
    lessThanOrEqual = 'lessThanOrEqual',
    empty = 'empty',
    unEmpty = 'unEmpty'
}